package xin.basic.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import xin.core.jpa.JpaConstant;
import xin.core.jpa.model.AuditableEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * <pre>
 * 数据字典
 * </pre>
 *
 * @author lixin_ma@outlook.com
 * @version 1.0
 * @since 2018/8/10
 */
@Entity
@Table(name = "sys_dict")
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class Dict extends AuditableEntity {

    /**
     * 码
     */
    @Column(length = JpaConstant.CommonStringMidLength)
    private String code;

    /**
     * 值
     */
    @Column(length = JpaConstant.CommonStringMidLength)
    private String value;

    /**
     * 分组代码
     */
    @Column(length = JpaConstant.UidColumnLength)
    private String groupCode;

    /**
     * 备注
     */
    @Column(length = JpaConstant.CommonStringLargeLength)
    private String remark;
}
